package com.jeesite.modules.message.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

@Table(name="h_message", alias="a", label="消息提示信息表", columns={
        @Column(name="message_id", attrName="messageId", label="信息id", isPK=true),
        @Column(name="foreign_id", attrName="foreignId", label="外键id"),
        @Column(name="message_type", attrName="messageType", label="0 待审核商家"),
        @Column(name="title", attrName="title", label="标题"),
        @Column(name="content", attrName="content", label="信息内容"),
        @Column(name="read_status", attrName="readStatus", label="阅读状态", comment="0:未读，1：已读"),
        @Column(name="create_by", attrName="createBy", label="创建者", isUpdate=false, isQuery=false),
        @Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
}, orderBy="a.create_date DESC"
)
public class Message extends DataEntity<Message> {

    private static final long serialVersionUID = 1L;

    private String messageId;   // 信息id

    private String foreignId;   // 外键id

    private String messageType;  // 0 待审核商家

    private String title;  // 标题

    private String content;  // 内容

    private String readStatus;   //  阅读状态  【0:未读，1：已读】

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getForeignId() {
        return foreignId;
    }

    public void setForeignId(String foreignId) {
        this.foreignId = foreignId;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReadStatus() {
        return readStatus;
    }

    public void setReadStatus(String readStatus) {
        this.readStatus = readStatus;
    }
}
